/*
 ============================================================================
 Name		: StrLightSettingList.h
 Author	  : 
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CStrLightSettingList declaration
 ============================================================================
 */

#ifndef STRLIGHTSETTINGLIST_H
#define STRLIGHTSETTINGLIST_H

// INCLUDES
#include <coecntrl.h>
#include <AknSettingItemList.h>
#include <aknsettingpage.h> 

// CLASS DECLARATION
class CConfiguration;

/**
 *  CStrLightSettingList
 * 
 */
class CStrLightSettingList : public CAknSettingItemList
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CStrLightSettingList();

	/**
	 * Two-phased constructor.
	 */
	static CStrLightSettingList* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CStrLightSettingList* NewLC();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CStrLightSettingList();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

public:
	// From CAknSettingItemList

	/**
	 * From CAknSettingItemList.
	 * Creates setting item.
	 *
	 * @param aSettingId Type of the setting item.
	 * @return  Pointer to CAknSettingItem object.
	 */
	CAknSettingItem* CreateSettingItemL(TInt aSettingId);

	/**
	 * From CAknSettingItemList.
	 * Edits setting item data.
	 *
	 * @param aIndex Setting item index.
	 * @param aCalledFromMenu is called from menu.
	 */
	void EditItemL(TInt aIndex, TBool aCalledFromMenu);
	
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

private:
	//data
	TInt iSelected;
	
	CConfiguration* iConfig;
	};

#endif // STRLIGHTCONTAINER_H
